package com.yvon.maple.pojo;

import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 当前用户
 *
 * @author : Yvon
 * @since : 2021-08-26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
public class LoginUser implements Serializable {

    /**
     * ID
     */
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 是否管理员
     */
    private Boolean isAdmin = false;

    /**
     * 是否登录
     */
    private Boolean isLogin = true;

}
